package com.ushine.web.component.design.strategy.strategy.impl;

import com.ushine.web.component.design.chain.salary.model.SalaryCalculateBO;
import com.ushine.web.component.design.strategy.strategy.AbstractSalaryStrategy;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @Author: yls
 * @Date: 2022/03/04 15:00
 * @Description: 离职员工
 * @Version 1.0
 */
@Service
public class LeaveStaffStrategy implements AbstractSalaryStrategy {
    @Override
    public BigDecimal getBaseSalary(SalaryCalculateBO salaryCalculate) {
        return new BigDecimal(120);
    }

    @Override
    public BigDecimal getValueAddedTax(SalaryCalculateBO salaryCalculate) {
        return new BigDecimal(100);
    }

    @Override
    public BigDecimal getAchievement(SalaryCalculateBO salaryCalculate) {
        return new BigDecimal(80);
    }
}
